﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->

    <link href="@Url.Content("~/Content/css/bootstrap.min.css")" rel="stylesheet" media="screen">
    <link href="@Url.Content("~/Content/css/main.css")" rel="stylesheet" media="screen">
    <link href="@Url.Content("~/Content/css/bootstrap-wysihtml5-0.0.2.css")" rel="stylesheet" media="screen">
    <link href="@Url.Content("~/Content/css/bootstrap-fileupload.min.css")" rel="stylesheet" media="screen">
    <style type="text/css">
        /*style layout*/
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }

        .sidebar-nav {
            padding: 9px 0;
        }
    </style>
    <link href="@Url.Content("~/Content/css/bootstrap-responsive.min.css")" rel="stylesheet" media="screen">
    <script src="http://code.jquery.com/jquery.js"></script>
    <script src="http://malsup.github.com/jquery.form.js"></script>
</head>

<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container-fluid">
                <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="brand" href="@Url.Action("Index", "Home")">
                    <img src="@Url.Content("~/Content/img/viecnho-logo-small.png")" style="height:30px;"></a>
                <div class="nav-collapse collapse">
                    @if (User.Identity.IsAuthenticated)
                    {
                        <p class="navbar-text pull-right">
                            Logged in as <a href="javascript:;" class="navbar-link">@User.Identity.Name</a>
                            <a href="@Url.Action("Logout", "Home")">Logout</a>
                        </p>

                    }

                    <ul class="nav">
                        <li class="active"><a href="#">Home</a></li>
                        <li><a href="#about">About</a></li>
                        <li><a href="@Url.Action("Index", "User")">User</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="#">Action</a></li>
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li>
                                <li class="divider"></li>
                                <li class="nav-header">Nav header</li>
                                <li><a href="#">Separated link</a></li>
                                <li><a href="#">One more separated link</a></li>
                            </ul>
                        </li>
                    </ul>
                    @*for form login*@
                    @* <form class="navbar-form pull-right">
              <input class="span2" type="text" placeholder="Email">
              <input class="span2" type="password" placeholder="Password">
              <button type="submit" class="btn">Sign in</button>
            </form>*@
                </div>
                <!--/.nav-collapse -->
            </div>
        </div>
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span3">
                <div class="well sidebar-nav">
                    <ul class="nav nav-list">
                        <li class="nav-header"><a href="@Url.Action("Index", "User")">User</a></li>
                        <li class="nav-header"><a href="@Url.Action("Index", "Provide")">Provide</a></li>
                        <li class="nav-header"><a href="@Url.Action("Index", "Request")">Request</a></li>
                        <li class="nav-header"><a href="@Url.Action("Index", "Banner")">Banner</a></li>
                        <li><a href="@Url.Action("ConfigBanner", "Banner")">Config Banner</a></li>
                        <li class="nav-header"><a href="@Url.Action("Index", "Category")">Category</a></li>
                        <li><a href="@Url.Action("ConfigCategory", "Category")">Config Category</a></li>
                        <li class="nav-header">Sidebar</li>
                        <li><a href="@Url.Action("Index", "Feature")">Feature</a></li>
                        <li><a href="@Url.Action("Index", "Order")">Order</a></li>
                        <li><a href="@Url.Action("Complaint", "Order")">Complaint</a></li>
                        <li><a href="@Url.Action("Index", "Transaction")">Transaction</a></li>
                        <li><a href="@Url.Action("Index", "Email")">Email</a></li>
                        <li><a href="@Url.Action("SendMail", "Email")">Send Mail</a></li>
                        <li><a href="@Url.Action("ReferencesDictionaryEmail", "Email")">All Dictionary Email</a></li>
                        <li><a style="cursor: pointer" onclick="clearCache()">Clear Cache</a></li>
                    </ul>
                </div>
                <!--/.well -->
            </div>
            <!--/span-->
            <div class="span9">
                @RenderBody()
            </div>
            <!--/span-->
        </div>
        <!--/row-->

        <hr>

        <footer>
            <p>© Company 2013</p>
        </footer>
    </div>

    <script src="@Url.Content("~/Content/js/bootstrap.min.js")"></script>
    <script src="@Url.Content("~/Content/js/prettify.js")"></script>
    <script src="@Url.Content("~/Content/js/bootstrap-fileupload.min.js")"></script>
    <script src="@Url.Content("~/Content/js/wysihtml5-0.3.0.js")"></script>
    <script src="@Url.Content("~/Content/js/bootstrap-wysihtml5.js")"></script>
    <script src="@Url.Content("~/Content/js/jquery.tablesorter.min.js")"></script>
    <script src="@Url.Content("~/Content/js/bootstrap-datepicker.js")"></script>
    <script type="text/javascript">
        function clearCache() {
            if (confirm("Xóa hết cache sao ?")) {
                $.post('@Url.Action("ClearCache", "Home")', function (res) {
                    if (res == true) {
                        alert('Xóa hết rồi !');
                    } else {
                        alert('Đệt éo đc :((');
                    }
                });
            }
        }
    </script>
</body>
</html>
